package com.teng.mylibrary.base

import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView

/**
 * Description:  BaseViewHolder
 * Author:       liuteng
 * CreateDate:   2021/12/16 10:56
 * UpdateRemark: 更新说明
 */
open class BaseViewHolder(open val dataBinding: ViewDataBinding) :
    RecyclerView.ViewHolder(dataBinding.root) {
}

/**
 * 头布局
 */
open class HeaderViewHolder(headerBind: ViewDataBinding) : BaseViewHolder(headerBind) {
}

/**
 * 内容布局
 */
open class MainViewHolder(override var dataBinding: ViewDataBinding) : BaseViewHolder(dataBinding) {
}

/**
 * 尾布局
 */
open class FooterViewHolder(footBinding: ViewDataBinding) : BaseViewHolder(footBinding) {
}
